ScriptMerge compares files and folders and applies differences to either copy of the two compared items.
ScriptMerge is a stand-alone application shipped with PowerShell Studio 2015.
To start ScriptMerge:
- In the Windows Start Menu, select SAPIEN Technologies, Inc\ScriptMerge.
-OR-
- On the Start page, type ScriptMerge, and press Enter.
-OR-
- In PowerShell Studio, click Tools.
- In the File Browser, click Compare Files.
ScriptMerge compares files and highlights the differences.
To compare files:
When you first open the files, ScriptMerge displays the differences as gray, light yellow and dark yellow colored lines.
The light yellow indicates words that have changed. The dark yellow indicates a line that contains a change. The dark gray lines indicate a line that was deleted. To see it in action, change a line and save it. Then you will see the changes reflected in the file comparison.
The line that contains the change is indicated by the dark yellow highlight in both panes. | The word that was changed is indicated by the light yellow highlight in both panes. |
To step through the changes:
The current difference is highlighted in different shades of red.
To merge the changes:
There's also a lot of power in comparing folders. You might have two folders with the same file names and you want to see which one you should be using. ScriptMerge makes that very simple.
To compare folders:
ScriptMerge compares the files in each folder and their contents. The results show which folders have files in both locations, or if the folders have files in only one.
If a file exists in both locations but is different, then it's marked with a red icon.
If the files are identical in both locations you'll see the blue whole page icon.
The icons reflect the folder position; left page icons and right page icons.
To replace a file in one folder with the file in the other folder:
-OR-
You can change some options in ScriptMerge to suit your needs.
To change ScriptMerge options:
You can change the highlight colors for the comparisons and set compare options.
The block section of the ribbon provides buttons to help you move between differences in a file.
The merge section of the ribbon provides buttons to help you copy code from one file to another.